﻿
function importUser() {    
    //清空内容  
    $('#fmimport').form('clear');
    $('#dlgimport').dialog('open').dialog('setTitle', '导入');
}
function saveimportUser() { 
    var f = $('#fmimport');
    f.form('submit', {
        url: "importExcel.ashx?action=import",
        onSubmit: function () {
            return $(this).form('validate');
        },
        success: function (result) {
            var parter = /(\\n+)/g;
            result = result.replace(parter, "<br/>");
            $('#dlgimport').dialog('close');
            $.messager.alert("提示", result, "info");
            $('#tt').datagrid('reload');
        }
    });
}